#!/usr/bin/python

shoplist = ['apple', 'mango', 'carrot', 'banana']
print 'Item 0 is %s' % shoplist[0]
print 'Item 1 is %s' % shoplist[1]
print 'Item 2 is %s' % shoplist[2]
print 'Item 3 is %s' % shoplist[3]
print 'Item -1 is %s' % shoplist[-1]
print 'Item -2 is %s' % shoplist[-2]

print 'Item 1 to 3 is %s' % shoplist[1:3]
print 'Item 1 to end is %s' % shoplist[1:]
print 'Item 1 to -1 is %s' % shoplist[1:-1]

